<?php
/**
 * Attachments
 *  @OA\Schema(
 *       schema="Attachments",
 *       description="Attachments-附件",
 *       @OA\Property(
 *            property="id",
 *            type="number"
 *       ),
 *      @OA\Property(
 *            property="path",
 *            type="string",
 *            description="附件存储路径"
 *       ),
 *       @OA\Property(
 *            property="url",
 *            type="string",
 *            description="资源地址"
 *      ),
 *      @OA\Property(
 *            property="mime_type",
 *            type="string",
 *            description="资源mimeType"
 *       ),
 *      @OA\Property(
 *            property="file_ext",
 *            type="string",
 *            description="资源后缀"
 *       ),
 *      @OA\Property(
 *            property="file_size",
 *            type="number",
 *            description="资源大小"
 *       ),
 *      @OA\Property(
 *            property="filename",
 *            type="string",
 *            description="资源名称"
 *       ),
 *      @OA\Property(
 *            property="driver",
 *            type="string",
 *            description="驱动: local,oss,qcloud,qiniu"
 *       ),
 *     @OA\Property(
 *            property="created_at",
 *            type="string",
 *            description="创建时间"
 *       ),
 *     @OA\Property(
 *            property="updated_at",
 *            type="string",
 *            description="更新时间",
 *     ),
 *     @OA\Property(
 *            property="deleted_at",
 *            type="string",
 *            description="删除状态，null 未删除 timestamp 已删除",
 *     ),
 * )
 *
 * @OA\Get(path="/attachments",
 *   tags={"attachments"},
 *   summary="附件列表",
 *   operationId="getAttachments",
 *   security={{"Authorization-Bearer":{}}},
 *   @OA\Parameter(ref="#/components/parameters/pageSize"),
 *   @OA\Parameter(ref="#/components/parameters/current"),
 *   @OA\Parameter(ref="#/components/parameters/keyword"),
 *   @OA\Response(response="200", description="Success",
 *       @OA\JsonContent(ref="#/components/schemas/QueryResponse")
 *   )
 * )
 *
 *
 * @OA\Delete (path="/attachments/{id}",
 *   tags={"attachments"},
 *   summary="删除附件",
 *   operationId="deleteAttachments",
 *   security={{"Authorization-Bearer":{}}},
 *   @OA\Parameter(ref="#/components/parameters/id"),
 *   @OA\Response(response="200", description="Success",
 *       @OA\JsonContent(ref="#/components/schemas/HandleResponse")
 *   )
 * )
 */